.class public Lcom/glympse/platform/Reflection$_ActionBar;
.super Ljava/lang/Object;
.source "Reflection.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/glympse/platform/Reflection;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x9
    name = "_ActionBar"
.end annotation


# static fields
.field private static ms_fLoaded:Z

.field private static ms_oClass:Ljava/lang/Class;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/lang/Class",
            "<*>;"
        }
    .end annotation
.end field

.field private static ms_oMethod_isShowing:Ljava/lang/reflect/Method;


# direct methods
.method static constructor <clinit>()V
    .locals 2

    .prologue
    const/4 v1, 0x0

    .line 262
    const/4 v0, 0x0

    sput-boolean v0, Lcom/glympse/platform/Reflection$_ActionBar;->ms_fLoaded:Z

    .line 263
    sput-object v1, Lcom/glympse/platform/Reflection$_ActionBar;->ms_oClass:Ljava/lang/Class;

    .line 264
    sput-object v1, Lcom/glympse/platform/Reflection$_ActionBar;->ms_oMethod_isShowing:Ljava/lang/reflect/Method;

    .line 260
    return-void
.end method

.method public constructor <init>()V
    .locals 0

    .prologue
    .line 260
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

.method private static Load()V
    .locals 3

    .prologue
    .line 269
    sget-boolean v0, Lcom/glympse/platform/Reflection$_ActionBar;->ms_fLoaded:Z

    if-nez v0, :cond_0

    .line 271
    const/4 v0, 0x1

    sput-boolean v0, Lcom/glympse/platform/Reflection$_ActionBar;->ms_fLoaded:Z

    .line 275
    :try_start_0
    const-string v0, "android.app.ActionBar"

    invoke-static {v0}, Ljava/lang/Class;->forName(Ljava/lang/String;)Ljava/lang/Class;

    move-result-object v0

    sput-object v0, Lcom/glympse/platform/Reflection$_ActionBar;->ms_oClass:Ljava/lang/Class;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_1

    .line 281
    :goto_0
    sget-object v0, Lcom/glympse/platform/Reflection$_ActionBar;->ms_oClass:Ljava/lang/Class;

    if-eqz v0, :cond_0

    .line 285
    :try_start_1
    sget-object v0, Lcom/glympse/platform/Reflection$_ActionBar;->ms_oClass:Ljava/lang/Class;

    const-string v1, "isShowing"

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;

    move-result-object v0

    sput-object v0, Lcom/glympse/platform/Reflection$_ActionBar;->ms_oMethod_isShowing:Ljava/lang/reflect/Method;
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0

    .line 292
    :cond_0
    :goto_1
    return-void

    .line 287
    :catch_0
    move-exception v0

    goto :goto_1

    .line 277
    :catch_1
    move-exception v0

    goto :goto_0
.end method

.method static synthetic access$0(Ljava/lang/Object;)Z
    .locals 1
    .parameter

    .prologue
    .line 295
    invoke-static {p0}, Lcom/glympse/platform/Reflection$_ActionBar;->isShowing(Ljava/lang/Object;)Z

    move-result v0

    return v0
.end method

.method private static isShowing(Ljava/lang/Object;)Z
    .locals 3
    .parameter "oActionBar"

    .prologue
    .line 297
    if-eqz p0, :cond_0

    .line 299
    invoke-static {}, Lcom/glympse/platform/Reflection$_ActionBar;->Load()V

    .line 301
    sget-object v1, Lcom/glympse/platform/Reflection$_ActionBar;->ms_oMethod_isShowing:Ljava/lang/reflect/Method;

    if-eqz v1, :cond_0

    .line 305
    :try_start_0
    sget-object v1, Lcom/glympse/platform/Reflection$_ActionBar;->ms_oMethod_isShowing:Ljava/lang/reflect/Method;

    const/4 v2, 0x0

    invoke-virtual {v1, p0, v2}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object p0

    .end local p0
    check-cast p0, Ljava/lang/Boolean;

    invoke-virtual {p0}, Ljava/lang/Boolean;->booleanValue()Z
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    move-result v1

    .line 313
    :goto_0
    return v1

    .line 307
    :catch_0
    move-exception v1

    move-object v0, v1

    .line 309
    .local v0, e:Ljava/lang/Exception;
    invoke-static {v0}, Lcom/glympse/platform/common/Helpers;->Log(Ljava/lang/Throwable;)V

    .line 313
    .end local v0           #e:Ljava/lang/Exception;
    :cond_0
    const/4 v1, 0x0

    goto :goto_0
.end method
